package com.example.ruiji.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
@Data
///该接口标记了该类可以被序列化 方便日后再网络传输 不会因为平台不同导致各种问题
//跨平台 持久保存
public class Employee implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String username;

    private String name;

    private String password;

    private String phone;

    private String sex;

    private String idNumber;//身份证号码

    private Integer status;
    @TableField
    private LocalDateTime createTime;
@TableField
    private LocalDateTime updateTime;
//自动填充字段
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
}
